package org.example.plugindemo.service.impl;

import org.example.comm.service.SecurityCheckService;
import org.jsoup.Jsoup;
import org.pf4j.Extension;

import java.io.IOException;

@Extension
public class Pf4jDemo implements SecurityCheckService {
    @Override
    public String getBaiduHtml() {
        try {
            return Jsoup.connect("https://www.baidu.com").get().html();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
